import React from 'react';
import EnhancedTable from '../commons/EnhancedTable';
import { useTranslation } from 'react-i18next';

export default function Templates() {
    const {t} = useTranslation();
    const [pageInfo] = React.useState({
        pageId: "templates",
        title: t("Templates"),
        headCells: [
            {id: 'name', label: t('Template Name')},
            {id: 'nodes', label: t('Nodes')},
            {id: 'type', label: t('Type')}],
        tableOrderBy: 'name'
    });

    return <EnhancedTable pageInfo={pageInfo}/>
}